package p270jp.pxv.android.viewholder;

import android.view.ViewGroup;
import java.util.Date;
import p325m0.MutabilityOwnership;
import p370ni.RankingCategory;
import p521th.FlexibleItemAdapterSolidItem;
import p521th.SolidItemViewHolder;

/* compiled from: RankingLogDateSpinnerSolidItem.kt */
/* renamed from: jp.pxv.android.viewholder.RankingLogDateSpinnerSolidItem */
/* loaded from: classes2.dex */
public final class RankingLogDateSpinnerSolidItem extends FlexibleItemAdapterSolidItem {
    public static final int $stable = 8;
    private final Date date;
    private final RankingCategory rankingCategory;

    public RankingLogDateSpinnerSolidItem(RankingCategory cVar, Date date) {
        MutabilityOwnership.m3745m(cVar, "rankingCategory");
        MutabilityOwnership.m3745m(date, "date");
        this.rankingCategory = cVar;
        this.date = date;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public int getSpanSize() {
        return 2;
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public SolidItemViewHolder onCreateViewHolder(ViewGroup viewGroup) {
        MutabilityOwnership.m3745m(viewGroup, "parent");
        return RankingLogDateSpinnerViewHolder.Companion.createViewHolder(viewGroup, this.rankingCategory, this.date);
    }

    @Override // p521th.FlexibleItemAdapterSolidItem
    public boolean shouldBeInserted(int i, int i2, int i3, int i4) {
        return i3 == 0;
    }
}
